package com.emergency.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.emergency.data.entity.AddressBook;
import com.emergency.data.vo.AddressBookVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressBookMapper extends BaseMapper<AddressBook> {

    List<AddressBookVO> getAllAddressBookList(@Param("name") String name, @Param("deptId") Integer deptId, @Param("streetId") Integer streetId, @Param("villageId") Integer villageId);


    IPage<AddressBookVO> getAddressBookList(Page<AddressBookVO> page, @Param("name") String name, @Param("deptId") Integer deptId, @Param("streetId") Integer streetId, @Param("villageId") Integer villageId);


}
